/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.item.vo;

import io.swagger.annotations.ApiModelProperty;
import org.springblade.modules.item.entity.ItemEntity;
import org.springblade.core.tool.node.INode;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 教具 视图实体类
 *
 * @author
 * @since 2023-03-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ItemVO extends ItemEntity {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "图片url")
	private String imgUrl;

	@ApiModelProperty(value = "分类名称")
	private String categoryName;
	/**
	 * 类别;分类类别，是一级分类还是其他级别
	 */
	@ApiModelProperty(value = "分类级别")
	private Integer type;
	/**
	 * 上级分类id;上级分类id
	 */
	@ApiModelProperty(value = "上级分类id")
	private String fatherId;

	@ApiModelProperty(value = "教具id")
	private Long itemId;

	/**
	 * 库存变更   枚举ItemOperateType
	 */
	private Integer operateType;  //操作类型
	private Integer num;  //变更数量
	private String remark; //备注
	private String validStatus;//教具状态
	private String nowTime;//当前时间
	private Integer validTimeSearch;// 1正常  0已过期

	/**
	 * itemlog相关
	 */
	private Long userId;
	private String operationBackup;//操作备注
	private Date deliveryTime;//出库时间
	private Date warehousingTime;//入库时间
	private String operateTypeName;//操作类型名称
	private Integer number;


	/**
	 * 教具统计
	 */
	private long wareHouseNum;//入库数
	private long outStockNum;//出库数
	private long borrowNum;//借出数
	private long destoryNum;//销毁数

}
